﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using bdxyit.com.RecruitmentAppSys.IDAL;
using bdxyit.com.RecruitmentAppSys.DALFactory;
using bdxyit.com.RecruitmentAppSys.Models;
using bdxyit.com.RecruitmentAppSys.ViewModels;
namespace bdxyit.com.RecruitmentAppSys.BLL
{
    public  class SystemInfoBLL
    {
        private static readonly ISystemInfoDAL SystemInfoDal = DataAccess.CreateSystemInfo();

        public static List<SystemInfo> GetSystemInfoByCode(string type)
        {
          List<SystemInfo> sys =  SystemInfoDal.SelectSystemInfoByCode(type);
          return sys;
        }
      
        public static bool DeleteSystemInfoBytype(string type)
        {
            return SystemInfoDal.DeleteSystemInfoByCode(type);
        }
        public static bool InsertSystemInfo(SystemInfo cmodel)
        {
            return SystemInfoDal.InsertSystemInfo(cmodel);
        }
        public static bool UpdateSystemInfo(SystemInfo cmodel)
        {
            return SystemInfoDal.UpdateSystemInfo(cmodel);
        }

    }
}
